//
//  ViewController.swift
//  JLApiCenter
//
//  Created by JiangChencheng on 07/31/2024.
//  Copyright (c) 2024 JiangChencheng. All rights reserved.
//

import UIKit
import JLApiCenter

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view, typically from a nib.
        request()
    }

    
    func request() {
        Task{
            do {
                let model: JLExampleModel = try await JLApiCenter.request(.GET("get", ["name": "jcc"]))
                print("\(model)")
            } catch {
                print("\(error)")
            }
        }
        
    }

}

